<template>
  <div class="nested">
    <ul>
      <li>
        <nuxt-link to="/parent/square">
          导航1
        </nuxt-link>
      </li>
      <li>
        <nuxt-link to="/parent/moments">
          导航2
        </nuxt-link>
      </li>
    </ul>
    <div class="right">
      <!-- <nuxt-child>标签在父页面组件中相当于是子页面组件的占位符；嵌套中这个不可少 -->
      <nuxt-child keep-alive />
    </div>
  </div>
</template>
<script>
export default {}
</script>
<style lang="scss" scoped>
.nested {
  display: flex;
  justify-content: flex-start;
  width: 1300px;
  height: 100%;
  margin: 50px auto;
  ul {
    li {
      a {
        &.nuxt-link-exact-active{
          background: #999;
        }
      }
    }
  }
  .right{
    margin-left: 100px;
    border: 1px solid #eee;
    width: 800px;
    height: 500px;
  }
}
</style>
